<template>
  <div id="app">
    <el-container>
      <el-aside width="180px">
        <el-menu
          :default-active="this.$route.path"
          :router="true"
     
          class="el-menu-vertical-demo"
          background-color="#24292d"
          text-color="#888"
          active-text-color="#fff"
          style="height:100%;
          -webkit-user-select:none;
   -moz-user-select:none;
   -ms-user-select:none;
   user-select:none;          "
        >
          <el-menu-item style="border-bottom:1px solid " >
            <i
              class="el-icon-data-line"
              style="font-weight: 600;
                font-size: 24px;
                color: #f35626;
    background-image: -webkit-linear-gradient(-90deg, #f9957f 0%, #f2f5d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-animation: hue 60s infinite linear;              "
            ></i>
            <span style="font-size:26px;color: white">报告</span>
          </el-menu-item>

          <el-menu-item index="/">
            <i class="el-icon-house"></i>
            <span slot="title">总览</span>
          </el-menu-item>
          <el-menu-item index="/details">
            <i class="el-icon-document"></i>
            <span slot="title">明细</span>
          </el-menu-item>
          <el-menu-item index="/photo">
            <i class="el-icon-pie-chart"></i>
            <span slot="title">图表</span>
          </el-menu-item>
          <el-menu-item index="/other">
            <i class="el-icon-more"></i>
            <span slot="title">其他</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-main><router-view></router-view></el-main>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "App",
  methods:{
    test(){
      console.log(1)
      console.log(this.$route)
      return '/'
    }
  },data:function(){
    return {
      

    }
  }
};
</script>

<style>
html,
body,
#app {
  height: 100%;
  margin: auto;
}
.el-container {
  height: 100%;
}
</style>
